﻿using System;
using System.Collections.Generic;
using System.Text;
using PostSharp.Laos;
using B4ALL.JITL;
using System.Reflection;

namespace B4ALL.Cache.Singleton
{
    [Serializable]
    public class CacheSingletonReference : JITLReference
    {

        public CacheSingletonReference(MethodInfo methodSrc, Object[] methodParametersSrc, CacheSingletonKey keySrc)
            : base(methodSrc, methodParametersSrc)
        {
            if (keySrc == null)
                throw new CacheSingletonException();

            key = keySrc;
        }

        private CacheSingletonKey key = null;

        public CacheSingletonKey Key
        {
            get { return key; }
        }

    }
}
